﻿$(document).ready(function(){
   
    $("#expense-form").dialog({
        autoOpen: false,
        height: 300,
        width: 350,
        modal: true,
        buttons: {
            "Submit":function(){
                
            },
            "Cancel": function() {
                $(this).dialog('close');
            }
        },
        close: function() {
        },
        open: function(event, ui) {
            console.log("opened");
        }
    });
    
    $("#expense").click(function(){
        $("#expense-form").dialog("open");
        return false;
    });
    
    $("#revenue-form").dialog({
        autoOpen: false,
        height: 300,
        width: 350,
        modal: true,
        buttons: {
            "Submit":function(){
                
            },
            "Cancel": function() {
                $(this).dialog('close');
            }
        },
        close: function() {
        },
        open: function(event, ui) {
            console.log("opened");
        }
    });
    
    $("#revenue").click(function(){
        $("#revenue-form").dialog("open");
        return false;
    });
    
});